get_target_property(IncDirs gpsbabel INCLUDE_DIRECTORIES)
message(STATUS "Include Directores are: \"${IncDirs}\"")
+# In case we ever update the garmin_icons mkicondoc helps
+# update the related document table.
+add_executable(mkicondoc EXCLUDE_FROM_ALL mkicondoc.cc)
+target_link_libraries(mkicondoc PRIVATE ${QT_LIBRARIES})
+
set(TESTS
arc-project
arc
int satpf{};
int eleminpf{};
int elemaxpf{};
- gpsdata_type what;
+ gpsdata_type what{};
route_head* head{};
QVector<arglist_t> args = {
double min = exif_read_double(tag, 1);
double sec = exif_read_double(tag, 2);
- return QTime(int(hour), int(min), int(sec));
+ return QTime(0, 0).addMSecs(lround((((hour * 60.0) + min) * 60.0 + sec) * 1000.0));
}
QDate
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+#ifndef GARMIN_DEVICE_XML_H_
+#define GARMIN_DEVICE_XML_H_
/*
* Describes a file on the unit.
#include <csetjmp>
extern jmp_buf gdx_jmp_buf;
+#endif // GARMIN_DEVICE_XML_H_
}
for (int i = 0; i < wpt_a_ct; i++) { /* check for duplicates */
const Waypoint* tmp = wpt_a[i];
- if (case_ignore_strcmp(tmp->shortname, wpt->shortname) == 0) {
+ if (tmp->shortname.compare(wpt->shortname, Qt::CaseInsensitive) == 0) {
wpt_a[i] = wpt;
waypoints--;
return;
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+#ifndef GBSER_PRIVATE_H_
+#define GBSER_PRIVATE_H_
#define MYMAGIC 0x91827364
#define BUFSIZE 512
void gbser_db(int l, const char* msg, ...);
int gbser_fill_buffer(void* h, unsigned want, unsigned* ms);
unsigned gbser_read_buffer(void* handle, void** buf, unsigned* len);
+#endif // GBSER_PRIVATE_H_
class LatLng
{
public:
- LatLng(): _lat(0), _lng(0) {};
- LatLng(double lat, double lng): _lat(lat), _lng(lng) {};
+ LatLng(): _lat(0), _lng(0) {}
+ LatLng(double lat, double lng): _lat(lat), _lng(lng) {}
double lat() const
{
return _lat;
// Display all the Garmin icons that we know about so we can copy/paste
// into our doc, xmldoc/chapters/garmin_icons.xml.
-// cd mkicondoc && qmake && make
#include <algorithm> // for sort
#include <cstdio> // for printf
+++ /dev/null
-QT -= gui
-
-CONFIG += console
-CONFIG -= app_bundle
-CONFIG += c++17
-
-TEMPLATE = app
-
-SOURCES += ../mkicondoc.cc
gprmc
};
- enum {
+ enum read_mode_type {
rm_unknown = 0,
rm_serial,
rm_file
- } read_mode;
+ };
/* Member Functions */
gbfile* file_in{}, *file_out{};
route_head* trk_head{};
short_handle mkshort_handle{};
- preferred_posn_type posn_type;
+ preferred_posn_type posn_type{};
+ read_mode_type read_mode{};
QDateTime prev_datetime;
Waypoint* curr_waypt{};
Waypoint* last_waypt{};
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+#ifndef SRC_CORE_CODECDEVICE_H_
+#define SRC_CORE_CODECDEVICE_H_
#include <QIODevice> // for QIODevice
#include <QIODeviceBase> // for QIODeviceBase::OpenMode
};
} // namespace
+#endif // SRC_CORE_CODECDEVICE_H_
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#ifndef gpsbabel_logging_h_included
-#define gpsbabel_logging_h_included
+#ifndef SRC_CORE_LOGGING_H_
+#define SRC_CORE_LOGGING_H_
// A wrapper for QDebug that provides a sensible Warning() and FatalMsg()
// with convenient functions, stream operators and manipulators.
inline QTextStream& uppercasedigits(QTextStream &s) { return ::uppercasedigits(s); }
}
#endif
-#endif // gpsbabel_logging_h_included
+#endif // SRC_CORE_LOGGING_H_